export const ColumnProps = [
  {
    title: '车辆编号',
    dataIndex: 'deviceId',
    key: 'deviceId',
    width: 200,
    ellipsis: true
  },
  {
    title: '车辆描述',
    dataIndex: 'label',
    key: 'label',
    width: 200,
    ellipsis: true
  },
  {
    title: 'AGV类型',
    dataIndex: 'agvType',
    key: 'agvType',
    width: 200,
    ellipsis: true
  },
  {
    title: '空间/运行区域',
    dataIndex: 'zone',
    key: 'zone',
    width: 200,
    ellipsis: true
  },
  {
    title: 'AGV锁定',
    dataIndex: 'locationLock',
    key: 'locationLock',
    width: 200,
    ellipsis: true
  },
  {
    title: '修改时间',
    dataIndex: 'updateTime',
    key: 'updateTime',
    width: 300,
    ellipsis: true
  },
  {
    title: '修改人',
    dataIndex: 'updater',
    key: 'updater',
    width: 200,
    ellipsis: true
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    key: 'createTime',
    width: 300,
    ellipsis: true
  },
  {
    title: '创建人',
    dataIndex: 'creator',
    key: 'creator',
    width: 200,
    ellipsis: true
  }
];

export const FilterItems = [
  {
    type: 'input',
    label: '车辆编号',
    key: 'deviceId'
  },
  {
    type: 'select',
    label: 'AGV类型',
    key: 'agvType',
    data: []
  }
];

export const FormItems = [
  {
    type: 'input',
    label: '车辆编号',
    isShow: true,
    key: 'deviceId'
  },
  {
    type: 'input',
    label: '车辆描述',
    isShow: true,
    key: 'label',
  },
  {
    type: 'select',
    label: '空间/运行区域',
    isShow: true,
    key: 'zone'
  },
  {
    type: 'select',
    label: 'AGV类型',
    isShow: true,
    key: 'agvType'
  },
]

export const FormProps = {
  id: '',
  deviceId: '',
  label: '',
  zone: '',
  type: '',
}

export const RuleProps = {
  deviceId: [{ required: true, message: '请输入站点编号' }],
  label: [{ required: true, message: '请输入车辆描述' }],
  zone: [{ required: true, message: '请选择空间/运行区域' }],
  agvType: [{ required: true, message: '请选择AGV类型' }],
}

export const FilterModel = {
  total: 0,
  current: 1,
  pageSize: 10,
  code: '',
  type: '',
  componentClazz:'car'
};
